package com.lsz.flight_system.service;

import com.lsz.flight_system.entity.BuyTicketsMessage;
import com.lsz.flight_system.entity.PlaneMessage;
import com.lsz.flight_system.entity.UserMessage;

import java.util.List;
import java.util.Map;

public interface BuyTicketsMessageService {
    BuyTicketsMessage getBuyTicketsMessage(UserMessage userMessage, PlaneMessage planeMessage);

    Boolean addBuyTicketsMessage(BuyTicketsMessage buyTicketsMessage);

    boolean updateUserBalance(String username,Float balance);

    List<BuyTicketsMessage> getUserBuyTicketsMessages(Map<String,Object> map);

    boolean userBackTickets(Long id);

    BuyTicketsMessage findBuyTicketsMessageById(Long id);

    List<BuyTicketsMessage> findAllBuyTicketsMessage(Map<String,Object> map);

    boolean delBuyTicketsMessage(Long id);

    boolean updateUserBuyTicketStart(Long id,String ticketState);
}
